package com.junit;

import java.util.List;

import org.junit.Test;

import com.jfinal.plugin.activerecord.Db;
import com.jfinal.plugin.activerecord.Record;
import com.xpgk.mvc.organization.Organization;
import com.xpgk.mvc.organizationLevel.OrganLevel;
import com.xpgk.mvc.organizationLevel.OrganLevelRight;
import com.xpgk.tools.ToolRandoms;

public class TestOrganization extends TestBase {

	@Test
	public void addOrganization() {
		try {
			Organization organ = new Organization();
			String ids = ToolRandoms.getUuid(true);
			organ.set("name", "系统");

			organ.save(ids);
		} catch (Exception e) {
			e.printStackTrace();
		}

	}


}
